<?php
if (! defined ( 'IN_TAOAPP' ))
	exit ();
define( 'TAO_APP_INDEX', 'http://127.0.0.1/top-pony/trunk/TaoApp/');
define('__PUBLIC__',TAO_APP_INDEX."Public");
define ( 'TAO_APP_DEV', true );
define( 'TAO_LIST_PAGESIZE', 10);

define( 'APP_DEBUG', true );
if (TAO_APP_DEV ) {
	// 沙箱模式
	//define ( 'TAO_APPKEY', '1021498788' );
	define ( 'TAO_APPKEY', '1021543774' );
	//define ( 'TAO_APPSECRET', 'sandbox6d50808eb1b00dac5f625fd78' );
	define ( 'TAO_APPSECRET', 'sandbox634104e99f57927bc2e56522e' );
	define ( 'TAO_REST_URL', 'http://gw.api.tbsandbox.com/router/rest?' );
	define( 'TAO_REST_HTTPS_URL', 'https://gw.api.tbsandbox.com/router/rest?');
	define ( 'TAO_CALLBACK_URL', 'http://localhost/ThinkPHP3.1.2_Core/TaoApp/' );
	define ( 'TAO_OAUTH_LOGIN_URL', 'http://container.api.tbsandbox.com/container?appkey=' . TAO_APPKEY );
	
	define( 'TAO_OAUTH_AUTHORIZE_URL', 'https://oauth.tbsandbox.com/authorize?');
	define( 'TAO_OAUTH_TOKEN_URL', 'https://oauth.tbsandbox.com/token');
	
} 
else {
	//正式环境 pony_18
	define ( 'TAO_APPKEY', '21498788' );
	define ( 'TAO_APPSECRET', '60acfa66d50808eb1b00dac5f625fd78' );
	define ( 'TAO_REST_URL', 'http://gw.api.taobao.com/router/rest?' );
	define( 'TAO_REST_HTTPS_URL', 'https://eco.taobao.com/router/rest?');
	define ( 'TAO_CALLBACK_URL', 'http://localhost/ThinkPHP3.1.2_Core/TaoApp/' );
	define ( 'TAO_OAUTH_LOGIN_URL', 'http://container.api.taobao.com/container?appkey=' . TAO_APPKEY );
	
	define( 'TAO_OAUTH_AUTHORIZE_URL', 'https://oauth.taobao.com/authorize?');
	define( 'TAO_OAUTH_TOKEN_URL', 'https://oauth.taobao.com/token');

}


define( 'TAO_RETURN_FORMAT', 'json');